Don't force toggle size for tabular menus either
authorMatthias Clasen <mclasen@redhat.com>
Mon, 22 Jun 2009 14:00:19 +0000 (10:00 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 22 Jun 2009 14:00:19 +0000 (10:00 -0400)
gtk/gtkmenu.c

index f67f390f6d97ebd3c4d63f88dd758d5a23bcf0ee..49d2e2319fdd46404e90c1efa1b93b696178b5cf 100644 (file)
@@ -2431,9 +2431,14 @@ gtk_menu_size_request (GtkWidget      *widget,
        priv->heights[t] = MAX (priv->heights[t], part);
     }
 
-  /* if the menu doesn't include any images or check items
-   * reserve the space so that all menus are consistent */
-  if (max_toggle_size == 0 && !priv->no_toggle_size)
+  /* If the menu doesn't include any images or check items
+   * reserve the space so that all menus are consistent.
+   * We only do this for 'ordinary' menus, not for combobox
+   * menus or multi-column menus
+   */
+  if (max_toggle_size == 0 && 
+      gtk_menu_get_n_columns (menu) == 1 &&
+      !priv->no_toggle_size)
     {
       guint toggle_spacing;
       guint indicator_size;